<template>
  <h2 class="text-center mb-4">{{ newsInfo.title }}</h2>
  <!-- <div class="my-4 w-1/2 mx-auto">
    <el-image
      v-if="newsInfo.cover"
      :src="newsInfo.cover"
      fit="cover"
      style="width: 100%"
    />
  </div> -->
  <div v-html="newsInfo.content" />
</template>

<script setup>
import { defineProps } from "vue";
const props = defineProps(["data"]);
const newsInfo = props.data;
</script>
<style scoped lang="scss"></style>
